f = open('checkpoint/cifar100_0.4_asym_seed_3_acc.txt')
result = f.readlines()
best_val_acc = 0
best_test_acc = 0
best_epoch = -1
for epoch in range(200):
    if epoch < 5:
        continue
    val_acc = float(result[epoch * 2][-6:-1])
    if val_acc > best_val_acc:
        best_val_acc = val_acc
        best_test_acc = float(result[epoch * 2 + 1][-6:-1])
        best_epoch = epoch

print(best_epoch)
print(best_test_acc)
    